
4P = $(shell which ../forth4p || which ../../bin/forth4p)
# GF = /home/helmar/test/bin/gforth-fast
GF = ~/gforth-0.7.0/gforth-fast
PF = pforth
4PX = $(4P) fix4p

BENCH =  bubble-sort.fs fib.fs matrix-mult.fs mm-rtcg.fs pfannkuch.h4

all: bench

bench:
	for a in $(BENCH) ; do echo Testing $$a ; bash -c "time $(4P) $$a" ; done

xbench:
	for a in $(BENCH) ; do echo Testing $$a ; bash -c "time $(4PX) $$a" ; done

slow:
	for a in $(BENCH) ; do echo Testing $$a ; bash -c "time INCLUDE4P=.. $(4P) -J $$a" ; done

gfbench:
	for a in $(BENCH) ; do echo Testing $$a ; bash -c "time $(GF) $$a" ; done

pfbench:
	for a in $(BENCH) ; do echo Testing $$a ; bash -c "time $(PF) $$a" ; done

clean:
	-rm *~

distclean: clean
